import request from '@/utils/request'

export default {
  /**
   * 添加线路类型
   * @param data
   * @returns {AxiosPromise}
   */
  addTransportLineType(data) {
    return request({
      url: `/base/goods/pd-transport-line-type`,
      method: 'post',
      data: data
    })
  },
  /**
   * 获取线路类型数据
   * @returns {AxiosPromise}
   */
  getTransportLineTypeAll() {
    return request({
      url: `/base/goods/pd-transport-line-type`,
      method: 'get'
    })
  },
  /**
   * 获取线路类型分页数据
   * @param pageNum
   * @param pageSize
   * @returns {AxiosPromise}
   */
  getTransportLinePage(pageNum, pageSize) {
    return request({
      url: `/base/goods/pd-transport-line-type/page`,
      method: 'get',
      params: {
        'page': pageNum,
        'pageSize': pageSize
      }
    })
  }
}
